package com.wxq.demo.controller;

import com.wxq.demo.service.HelloSender;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class TestController {
    @Autowired
    private HelloSender helloSender;

    @RequestMapping("test")
    public void test(String msg) {
        helloSender.send(msg);
        helloSender.sendUser();
    }
}
